
#ifndef WF_GETSELECT_H
#define WF_GETSELECT_H

#include "pf_previewactioninterface.h"
#include "pf_modification.h"
#include "document_interface.h"


/**
 * This action class can handle user events to select entities from plugin.
 */
class WF_GetSelect : public PF_ActionInterface {
	Q_OBJECT
public:
    /**
     * Action States.
     */
    enum Status {
        Select
    };

public:
    WF_GetSelect(PF_Container& container,
                        PF_GraphicView& graphicView);
    ~WF_GetSelect() {}


    virtual void init(int status=0);
	
    virtual void mouseReleaseEvent(PF_MouseEvent* e);
	
    virtual void updateMouseButtonHints();
    virtual void updateMouseCursor();
    virtual void updateToolBar();

    void setMesage(QString msg);
    bool isCompleted(){return completed;}
    void getSelected(QList<Plug_Entity *> *se);

private:
    bool completed;
    QString mesage;

};

#endif
